<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

class IndexController extends Controller
{
    public function index(Request $request)
    {
    		
    		//将users存入session中
    	// $request->session()->put('buyusers', 'true');
    		//进行判断
    	 // $request->session()->has('buyusers');
        $ip=$request->getClientIp();
        session(['ip'=>$ip]);


    	// return view('admin.layout.layout');
        // dd($request->session()->all());
    	return view('admin.index.index');
    	// echo 123;
    }
}
